-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Settings - Fixes for whitespaces and comments, added unit tests #1622
Conversation
["test1", "", 0], | ||
["test2", "", 0], | ||
["test3", " T E S T " , 0], | ||
["test4", " T E S T ", 0], | ||
["test5", "[ ' t e s t ' , "" T E S T "" ]", 0], | ||
["test6", "[ "" t e s t "" , | ||
|
||
"""" T E S T """" ]", 0], | ||
["test7", "[ true, false ]", 0], | ||
["test8", "[ "" item_1 "" , "" item_2 "" ]", 0], | ||
["test9", "[ ' item_1 ' , ' item_2 ' ]", 0], | ||
["test10", "[ ' item_1 ' , "" item_2 "" ]", 0], | ||
["test11", "[ '"" item_1 ""' , ' item_2 ' ]", 0], | ||
["test12", "[ ' item_1 ' , ""' item_2 '"" ]", 0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tabs!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tabs!
Tabs inside or outside of the strings? I saw the github action complained about tabs, but I want the tests to run with tabs (to make sure they work - unless that's unnecessary?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right, I see now. @PabstMirror do we have a way to ignore validating parts of code?
I don't think we need to test for tabs though, as whitespace is whitespace to Arma, but I may be wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
passing CI now
Something I forgot to mention explicitly for the whitespace fix regarding single quoted strings:
|
When merged this pull request will:
regexReplace
commands is switched (so removing multiline comments first, then single line), it will not work. This makes be believe both my regex' are not robust enough.Single quoted strings will be converted into double quoted strings.
So ' T E S T ' will remain/become " T E S T ".
I'd appreciate any help.